import { reqFloorList } from '../api'
const state = {
  // 所有图片的数据
  floorList: []
}
const mutations = {
  GETFLOORLIST(state, floorList) {
    state.floorList = floorList
  }
}
const actions = {
  // 获取所有图片的数据
  async getFloorList({ commit }) {
    let result = await reqFloorList();
    if (result.code == 200) {
      commit("GETFLOORLIST", result.data.data)
    }
  }
}
const getters = {}
export default {
  state, mutations, actions, getters
}